package com.supermarket.shop.system.controller;

import com.supermarket.shop.system.domain.Vip;
import com.supermarket.shop.system.service.ServiceVip;
import com.supermarket.shop.system.service.impl.ServiceVipImpl;

import java.io.IOException;
import java.util.Scanner;

public class ShopController {
    ServiceVip serviceVip = new ServiceVipImpl();
    Scanner sc = new Scanner(System.in);

    public void start() throws IOException {
        studentLoop:
        while (true) {
            System.out.println("--------欢迎来到 <购物> 管理系统--------");
            System.out.println("请输入您的选择: 1.购物功能  2.退货功能  3.购物篮功能   4.退出");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    System.out.println("购物功能");
                    shop();
                    break;
                case "2":
                    System.out.println("退货功能");

                    break;
                case "3":
                    System.out.println("购物篮功能");

                    break;
                case "4":
                    System.out.println("感谢您使用购物管理系统, 再见!");
                    break studentLoop;
                default:
                    System.out.println("您的输入有误, 请重新输入");
                    break;
            }

        }
    }
    //购物功能
    private void shop() {
    }
}

